.class public Lcom/melesta/payment/inapp3/InAppRequest;
.super Ljava/lang/Object;
.source "InAppRequest.java"

# interfaces
.implements Lcom/melesta/payment/interfaces/IRequest;


# instance fields
.field private countPerItem:I

.field private multiplier:F

.field private name:Ljava/lang/String;

.field private sku:Ljava/lang/String;

.field private final system:Lcom/melesta/payment/inapp3/InAppSystem;


# direct methods
.method public constructor <init>(Lcom/melesta/payment/inapp3/InAppSystem;)V
    .locals 1
    .parameter "system"

    .prologue
    .line 13
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 14
    iput-object p1, p0, Lcom/melesta/payment/inapp3/InAppRequest;->system:Lcom/melesta/payment/inapp3/InAppSystem;

    .line 15
    const/4 v0, 0x1

    iput v0, p0, Lcom/melesta/payment/inapp3/InAppRequest;->countPerItem:I

    .line 16
    return-void
.end method


# virtual methods
.method public getCountPerItem()I
    .locals 1

    .prologue
    .line 29
    iget v0, p0, Lcom/melesta/payment/inapp3/InAppRequest;->countPerItem:I

    return v0
.end method

.method public getMultiplier()F
    .locals 1

    .prologue
    .line 69
    iget v0, p0, Lcom/melesta/payment/inapp3/InAppRequest;->multiplier:F

    return v0
.end method

.method public getName()Ljava/lang/String;
    .locals 1

    .prologue
    .line 20
    iget-object v0, p0, Lcom/melesta/payment/inapp3/InAppRequest;->name:Ljava/lang/String;

    return-object v0
.end method

.method public getPaymentSystemName()Ljava/lang/String;
    .locals 1

    .prologue
    .line 74
    const-string v0, "inapp"

    return-object v0
.end method

.method public getSku()Ljava/lang/String;
    .locals 1

    .prologue
    .line 39
    iget-object v0, p0, Lcom/melesta/payment/inapp3/InAppRequest;->sku:Ljava/lang/String;

    return-object v0
.end method

.method public getSystem()Lcom/melesta/payment/inapp3/InAppSystem;
    .locals 1

    .prologue
    .line 58
    iget-object v0, p0, Lcom/melesta/payment/inapp3/InAppRequest;->system:Lcom/melesta/payment/inapp3/InAppSystem;

    return-object v0
.end method

.method public run()V
    .locals 2

    .prologue
    .line 50
    :try_start_0
    iget-object v1, p0, Lcom/melesta/payment/inapp3/InAppRequest;->system:Lcom/melesta/payment/inapp3/InAppSystem;

    invoke-virtual {v1, p0}, Lcom/melesta/payment/inapp3/InAppSystem;->buy(Lcom/melesta/payment/inapp3/InAppRequest;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    .line 55
    :goto_0
    return-void

    .line 52
    :catch_0
    move-exception v0

    .line 53
    .local v0, e:Ljava/lang/Exception;
    invoke-static {v0}, Lcom/melesta/engine/Error;->processException(Ljava/lang/Exception;)V

    goto :goto_0
.end method

.method public setCountPerItem(I)Lcom/melesta/payment/inapp3/InAppRequest;
    .locals 0
    .parameter "countPerItem"

    .prologue
    .line 33
    iput p1, p0, Lcom/melesta/payment/inapp3/InAppRequest;->countPerItem:I

    .line 34
    return-object p0
.end method

.method public setMultiplier(F)Lcom/melesta/payment/interfaces/IRequest;
    .locals 0
    .parameter "multiplier"

    .prologue
    .line 63
    iput p1, p0, Lcom/melesta/payment/inapp3/InAppRequest;->multiplier:F

    .line 64
    return-object p0
.end method

.method public setName(Ljava/lang/String;)Lcom/melesta/payment/inapp3/InAppRequest;
    .locals 0
    .parameter "name"

    .prologue
    .line 24
    iput-object p1, p0, Lcom/melesta/payment/inapp3/InAppRequest;->name:Ljava/lang/String;

    .line 25
    return-object p0
.end method

.method public setSku(Ljava/lang/String;)Lcom/melesta/payment/inapp3/InAppRequest;
    .locals 0
    .parameter "sku"

    .prologue
    .line 43
    iput-object p1, p0, Lcom/melesta/payment/inapp3/InAppRequest;->sku:Ljava/lang/String;

    .line 44
    return-object p0
.end method
